﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace IssueServiceLibrary
{
    [ServiceContract]
    public interface IIssueService
    {
        [OperationContract]
        List<Issue> GetAllIssues();
        [OperationContract]
        List<Issue> GetIssuesFor(User aUser);
        [OperationContract]
        bool AddIssue(Issue aIssue);
        [OperationContract]
        bool RemoveIssue(Issue aIssue);
        [OperationContract]
        bool AssignIssue(Issue aIssue, User aUser);
        [OperationContract]
        bool EditIssue(Issue anIssue);
        [OperationContract]
        User Login(String userID, String password);
        [OperationContract]
        bool AddUser(User aUser);
        [OperationContract]
        bool RemoveUser(User aUser);
        [OperationContract]
        User GetUser(String username);
        [OperationContract]
        List<User> GetAllUsers();
        [OperationContract]
        bool LoginIdExists(string user);
        [OperationContract]
        int GetNextID();
        
    }
}
